<?php

/* @var $this RootController */
/* @var $model Root */
Yii::app()->getClientScript()->registerScriptFile('http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js');
Yii::app()->getClientScript()->registerScriptFile( Yii::app()->request->baseUrl.'/js/voice.js');

$this->breadcrumbs=array(
	'词根'=>array('index'),
	$model->root,
);

// $this->menu=array(
// 	array('label'=>'List Root', 'url'=>array('index')),
// 	array('label'=>'Create Root', 'url'=>array('create')),
// 	array('label'=>'Update Root', 'url'=>array('update', 'id'=>$model->id)),
// 	array('label'=>'Delete Root', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
// 	array('label'=>'Manage Root', 'url'=>array('admin')),
// );
?>

<h1><?php echo $model->root; ?></h1>

<?php echo CHtml::encode($model->info); ?>
	<br />
<?php 
//echo count($model->rootwords);
foreach($model->rootwords as $info){

 	echo $this->renderPartial('/wordRoot/_view', array('data'=>$info)); 	//echo $info->id;
	
}
?>	